#include<iostream>
using namespace std;
const int N = 110;
int n, s, v;
int main()
{
	int t;
	cin >> t;
	while (t--) {
		cin >> n >> s >> v;
		if (n <= s * v)cout << 1 << endl;
		else cout << 0 << endl;
	}
	return 0;
}